<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// created :	09/02/2010
// version :	22/04/2010

abstract class Cmis_Services_Protocol_Abstract extends Cmis_Services_Abstract implements Cmis_Services_Protocol_Interface
{
	/**
     * Name are taked from the class name (after '_Services_Protocol_')
     * @see Cmis_Services_Interface#getServiceName()
     */
    public function getServiceName()
    {
        $name = get_class($this);
        return substr($name, strpos($name, '_Services_Protocol_') + 19);
    }

    public function getProtocolClient()
    {
        return $this->getServices()->getProtocol()->getClient();
    }

    /**
     * @return Cmis_Http_Response
     */
    abstract protected function _callServices($url);
}

# EOF
